package com.monika.main.system.log.entity;


import com.monika.main.system.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @Author whh
 * @Date: 2023/04/15/ 0:33
 * @description
 */
@Setter
@Getter
public class SysUserLoginLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    private Long infoId;

    /** 用户账号 */
    private String userName;

    /** 登录状态 0成功 1失败 */
    private String status;

    /** 登录IP地址 */
    private String ipaddr;

    /** 登录地点 */
    private String loginLocation;

    /** 浏览器类型 */
    private String browser;

    /** 操作系统 */
    private String os;

    /** 提示消息 */
    private String msg;

    /** 访问时间 */
    private String loginTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("infoId", getInfoId())
                .append("userName", getUserName())
                .append("status", getStatus())
                .append("ipaddr", getIpaddr())
                .append("loginLocation", getLoginLocation())
                .append("browser", getBrowser())
                .append("os", getOs())
                .append("msg", getMsg())
                .append("loginTime", getLoginTime())
                .append("createBy", getCreate_by())
                .append("createTime", getCreate_time())
                .append("updateBy", getUpdate_by())
                .append("updateTime", getUpdate_time())
                .append("remark", getRemark())
                .toString();
    }

}
